/*
 * GVMax Copyright (c) Hani Naguib 2009.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v3.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/
 * 
 * Contributors:
 *     Hani Naguib - developer
 */
package net.javalib.gvmax.post.server.util;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;


/**
 * Interface to http://tinyurl.com service
 */
public class TinyURL {

	public static String getTinyUrl(String fullUrl) throws IOException {
		Map<String, String> params = new HashMap<String, String>();
		params.put("url", fullUrl);
		return NetUtil.doPost("http://tinyurl.com/api-create.php", params);
	}
	
}
